const TokenKey = 'App-Token'

const userInfoId = 'userInfoId'
export function getToken() {
  return uni.getStorageSync(TokenKey)
}

export function setToken(token) {
  return uni.setStorageSync(TokenKey, token)
}

export function removeToken() {
  return uni.removeStorageSync(TokenKey)
}

export function getUserInfoId() {
  return uni.getStorageSync(userInfoId)
}

export function setUserInfoId(id) {
  return uni.setStorageSync(userInfoId, id)
}

export function removeUserInfoId() {
  return uni.removeStorageSync(userInfoId)
}
